dialogOpen = function (opt) {
    var defaults = {
        id: 'layerForm',
        title: '',
        width: '',
        height: '',
        url: null,
        scroll: false,
        data: {},
        btn: ['确定', '取消'],
        success: function () {
        },
        yes: function () {
        }
    }
    var option = $.extend({}, defaults, opt), content = null;
    if (option.scroll) {
        content = [option.url]
    } else {
        content = [option.url, 'no']
    }
    top.layer.open({
        type: 2,
        id: option.id,
        title: option.title,
        closeBtn: 1,
        anim: -1,
        isOutAnim: false,
        shadeClose: false,
        shade: 0.3,
        area: [option.width, option.height],
        content: content,
        btn: option.btn,
        success: function () {
            option.success(option.id);
        },
        yes: function () {
            option.yes(option.id);
        }
    });
}